<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./LogInTemplate.xhtml">

            <ui:define name="top">
                <p:panel>
                    <center>
                        <p:graphicImage value="./img/welcome.png"/>
                    </center>
                </p:panel>
            </ui:define>
            <ui:define name="content">
                <f:view>
                    <h:form>
                        
                            <p:panel>
                                <center>
                                <h:panelGrid columns="2">
                                    <h:panelGrid columns="2">
                                        <p:outputLabel value="User: "/>
                                        <p:inputText id="user" value="#{accesBean.user}">
                                            <p:tooltip for="user" value="Please, put your acces id"/>
                                        </p:inputText>
                                        <p:outputLabel value="Password : " for="password"/>
                                        <p:password id="password" value="#{accesBean.password}">
                                            <p:tooltip for="password" value="Please, put your password"/>
                                        </p:password>
                                    </h:panelGrid>
                                    <p:graphicImage value="./img/login.png" height="150" width="150"/>  
                                </h:panelGrid>
                                <p:commandButton value="Login" action="#{accesBean.procesarAction}"/>
                                </center>
                            </p:panel>    
                        
                    </h:form>
                </f:view>
            </ui:define>

            <ui:define name="bottom">
                bottom
            </ui:define>

        </ui:composition>

    </body>
</html>
